package com.sy.webdemo.controller;

import com.sy.webdemo.bean.ConsumerComponent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author songyi
 * @className WebController
 * @description TODO
 * @date 2020/8/17 0017 14:16
 */
@RestController
public class WebController {

    @Autowired
    ConsumerComponent service;

    @RequestMapping("/")
    public String go(HttpServletRequest request){
        return service.getIp();
    }
}
